using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;
using System.ServiceModel;
using Microsoft.Samples.SsbTransportChannel;
using System.Threading;
namespace SsbTransportTestSuite.Services
{

    class OneWayService : IOrderProcessing
    {
        #region IOrderProcessing Members
        internal static AutoResetEvent EndOrderCalled = new AutoResetEvent(false);

        public void BeginOrder(Order order)
        {
            Console.WriteLine("BeginOrder called");
        }

        public void AddOrderItem(OrderItem item)
        {
            Console.WriteLine("AddOrderItem called");
        }

        public void EndOrder()
        {
            Console.WriteLine("EndOrder called");
            EndOrderCalled.Set();
        }

        #endregion
    }

   
}
